﻿namespace KseCms.Application
{
    [Authorize]
    public class PaymentAppService : IDynamicApiController
    {
        private readonly IPaymentService _paymentService;
        public PaymentAppService(IPaymentService paymentService)
        {
            _paymentService = paymentService;
        }

        public async Task<object> Pay(PaymentDto payment)
        {
            await _paymentService.Create(payment);

            return Results.Ok();
        }

    }
}